
<%@ page import="com.edusite.Alumnos" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="mainAdmin" />
        <g:set var="entityName" value="${message(code: 'alumnos.label', default: 'Alumnos')}" />
        <title><g:message code="default.show.label" args="[entityName]" /></title>
    </head>
    <body>
        <div class="nav">
            <span class="menuButton"><a class="home" href="${createLink(uri: '/home/indice')}">Home</a></span>
            <span class="menuButton"><g:link class="list" action="list"><g:message code="default.list.label" args="[entityName]" /></g:link></span>
            <span class="menuButton"><g:link class="create" action="create"><g:message code="default.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="default.show.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
            
                <table>
                    <tbody>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.id.label" default="Id" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "id")}</td>
                            
                        </tr>
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.apellidos.label" default="Apellidos" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "apellidos")}</td>
                            
                        </tr>
  
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.nombre.label" default="Nombre" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "nombre")}</td>
                            
                        </tr>
                        
                        <tr class="prop">
                                <td valign="top" class="name">
                                    <label for="tipo"><g:message code="personas.tipo.label" default="Tipo" /></label>
                                </td>
                                <td valign="top" class="value ${hasErrors(bean: personasInstance, field: 'tipo', 'errors')}">
                                    alumno
                                   <g:hiddenField name="tipo" value="alumno" />
                                </td>
                            </tr>                            

                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.usuario.label" default="Usuario" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "usuario")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.password.label" default="Password" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "password")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.dni.label" default="Dni" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "dni")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.correoe.label" default="Correoe" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "correoe")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.direccion.label" default="Direccion" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "direccion")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.poblacion.label" default="Poblacion" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "poblacion")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.provincia.label" default="Provincia" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "provincia")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.telefono.label" default="Telefono" /></td>
                            
                            <td valign="top" class="value">${fieldValue(bean: alumnosInstance, field: "telefono")}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name"><g:message code="alumnos.asignatura.label" default="Asignatura" /></td>
                            
                            <td valign="top" class="value"><g:link controller="asignaturas" action="show" id="${alumnosInstance?.asignatura?.id}">${alumnosInstance?.asignatura?.encodeAsHTML()}</g:link></td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <g:hiddenField name="id" value="${alumnosInstance?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="edit" value="${message(code: 'default.button.edit.label', default: 'Edit')}" /></span>
                    <span class="button"><g:actionSubmit class="delete" action="delete" value="${message(code: 'default.button.delete.label', default: 'Delete')}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');" /></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
